#ifndef _RSSDOCUMENTLINK_H
#define _RSSDOCUMENTLINK_H

#include "Date.h"
#include <string>

using namespace std;
using namespace userDate;

class RSSDocumentLink
{
	public:	//Default Function : Create & Destroy & Operator
		RSSDocumentLink();
		RSSDocumentLink( string link, Date lastRenewalDate );
		RSSDocumentLink( const RSSDocumentLink& source );
		~RSSDocumentLink();

		RSSDocumentLink& operator = ( const RSSDocumentLink& source );
		bool operator == ( const RSSDocumentLink& other );
		bool operator != ( const RSSDocumentLink& other );

		string& GetLink() const;
		Date& GetLastRenewalDate() const;
		void SetLastRenewalDate( Date newRenewalDate );

	private:
		string link;
		Date lastRenewalDate;
};

inline string& RSSDocumentLink::GetLink() const 
{
	return const_cast<string&>(this->link);
}

inline Date& RSSDocumentLink::GetLastRenewalDate() const
{
	return const_cast<Date&>(this->lastRenewalDate);
}

inline void RSSDocumentLink::SetLastRenewalDate( Date newRenewalDate )
{
	this->lastRenewalDate = newRenewalDate;
}

#endif
